<div class="main" id="main">
	<div class="main-left" id="main-left">
		<div class="toolbar">
			<div class="breadcrumb">
				<a href="__ROOT__" class="bread-home" title="Back to Home">Home</a>
				/
				<YP:catpos  catid="catid" space=" / " />
			</div>
		</div>

		<div class="product-info">
			<div class="product-img-box">
				<ul class="product-thumb ">
					<li class="resize-img" imgsrc="{$thumb}">
						<img src="{$thumb}" alt=""  onload="app.resizeImg(this);">
					</li>
					<volist name="pics" id="pics" offset="0" length='4'>
						<li class="resize-img"  imgsrc="{$pics.filepath}">
							<img src="{$pics.filepath}" alt="" onload="app.resizeImg(this);" />
						</li>
					</volist>
				</ul>
				<div class="product-img resize-img">
					<img src="{$thumb}" alt="" onload="app.resizeImg(this);" />
				</div>
			</div>

			<div class="product-detail">
				<h1 class="product-title">{$title}</h1>
				<div class="product-model">
					<span>Model:</span>
					{$model}
				</div>
				<div class="product-parameter">{$parameter}</div>
			</div>
			<div class="product-detail-opt">
				<div class="product-detail-btns">
					<button class="send-inquiry-btn">Send Inquiry</button>
				</div>
				<div class="product-share">
					<!-- JiaThis Button BEGIN -->
					<div class="jiathis_style_24x24">
						<a class="jiathis_button_fb"></a>
						<a class="jiathis_button_twitter"></a>
						<a class="jiathis_button_googleplus"></a>
						<a class="jiathis_button_tsina"></a>
						<a class="jiathis_button_weixin"></a>
						<a class="jiathis_button_delicious"></a>
						<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jiathis_separator jtico jtico_jiathis" target="_blank"></a>
						<a class="jiathis_counter_style"></a>
					</div>
					<script type="text/javascript" >
						var jiathis_config={
							summary:"",
							shortUrl:false,
							hideMore:false
						}
						</script>
					<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script>
					<!-- JiaThis Button END -->
				</div>
			</div>
			<div class="clearfix"></div>
		</div>

		<div class="product-description">
			<h2 class="product-description-head">Description</h2>
			<div class="product-description-body">{$content}</div>
		</div>

		<div id="pages" class="page">{$pages}</div>

	</div>
	<div class="main-right" id="main-right">
		<include file="Product:right" />
	</div>
	<div class="clearfix"></div>

</div>

<script>
	
	(function($){
		var productShowView={
			init:function(){	

				productShowView.productParameter();
				productShowView.changePic();

			},
			productParameter:function(){
				$(".product-parameter tr").each(function(){
					var _self=$(this);
					$(this).find("td:eq(0)").addClass('product-th')
				});
			},
			changePic:function(){
				$(".product-thumb li").on('click',function(){
					var self=$(this),
					      imgsrc=self.attr("imgsrc"),
					      productImg=$(".product-img"),
					      changeImg='<img src="'+imgsrc+'" alt="" />';
					productImg.find("img").fadeOut().remove();
					productImg.append(changeImg);
					app.resizeImg(productImg.find("img"));
				});
			}
			
		}

		productShowView.init();
		
	})(jQuery);


</script>